<div class="page-header"><h1>Edit group</h1></div>

<% form_for(group, {action: path_to.Group(Group), method: 'PUT', id: "group_form", class: 'form-horizontal'}, function (form) { %>
    <%- partial('groups/form.ejs', {locals: {form: form, group: group}}) %>
    <div class="form-actions">
        <%- form.submit('<i class="icon-ok icon-white"></i> Update group', {class: 'btn btn-primary'}) %> or
        <%- link_to('Cancel', path_to.Group(Group), {class: 'btn'}) %>
    </div>
<% });%>